package com.cskaoyan;

import java.util.List;
import java.util.Random;

/**
 * @ClassName ListUtil
 * @Description: TODO
 * @Author 远志 zhangsong@cskaoyan.onaliyun.com
 * @Date 2022/1/14 14:55
 * @Version V1.0
 **/
public class ListUtil {

    public static String getRandomElement(List<String> list){
        Random random = new Random();
        int index = random.nextInt(list.size());
        return list.get(index);
    }
}
